package com.demo.design.stractural.flyweight;

import com.demo.design.stractural.flyweight.impl.FlyweightFactoryImpl;

public class FlyweightMain {

    public static void main(String[] args) {
        FlyweightFactory dartzonFactory = new FlyweightFactoryImpl();
        Flyweight flyweight = dartzonFactory.getFlyweight("张正元");
        flyweight.operate("dartzon");
    }
}
